package com.sskj.one.mine;

import com.sskj.common.base.HttpData;
import com.sskj.lib.http.JsonCallBack;
import com.sskj.one.bean.GongGaoMsgBean;
import com.sskj.one.presenter.BasePresenter;

/**
 * @author Hey
 * Create at  2019/05/24
 */
class DetailGonggaoPresenter extends BasePresenter<DetailGonggaoActivity> {

    public void getGonggao(String id) {
        httpService.getGongGao(id)
                .tag(this)
                .execute(new JsonCallBack<HttpData<GongGaoMsgBean>>(this) {
                    @Override
                    public void onHTTPSuccess(HttpData<GongGaoMsgBean> data) {
                        mView.getGongGaoOK(data.getData());
                    }
                });
    }
}
